package com.saver.modules.oss;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface FileDao extends JpaRepository<FileEntity, Integer> {

    List<FileEntity> findByCreateUserIdAndPath(Long userId, String path);

    FileEntity findByIdAndCreateUserId(Integer id, Long userId);
}
